import {createHashRouter} from 'react-router-dom'
import GeekLayout from '@/pages/Layout'
import Login from '@/pages/Login'
import Home from '../pages/Layout/Home'
import Article from '../pages/Layout/Article'
import Publish from '../pages/Layout/Publish'
// import {AuthRoute} from '@/components/AuthRoute's
const router=createHashRouter([
    {
        path:'/',
        element:<GeekLayout/>,
        children:[
            {
                path:'home',
                element:<Home/>
            },
            {   
                path:'article',
                element:<Article/>    
            },
            {
                path:'publish',
                element:<Publish/>
            }
        ]
    },
    {
        path:'/login',
        element:<Login/>
    }
])

export default router